<template>
  <div>
    <h3>Test2组件</h3>
    <van-popover v-model:show="showPopover" :actions="actions" @select="onSelect">
  <template #reference>
    <van-button type="primary">浅色风格</van-button>
  </template>
</van-popover>

    <van-skeleton title avatar :row="3" />

  </div>
</template>

<script>
export default {
  setup() {
    // const showPopover = ref(false);

    // 通过 actions 属性来定义菜单选项
    const actions = [
      { text: '选项一' },
      { text: '选项二' },
      { text: '选项三' },
    ];
    const onSelect = (action) => showToast(action.text);

    return {
      actions,
      onSelect
    };
  },
}
</script>

<style>

</style>